package com.xianzhiOA.service;/**
 * Created by Administrator on 2017/4/27.
 */

import com.xianzhiOA.bean.XzAttendanceStateRecord;

import java.util.List;
import java.util.Map;

/**
 * 考勤状态的记录
 *
 * @author 王诗博
 * @create 2017-04-27 10:48
 **/

public interface XzAttendanceStateRecordService {
    //根据员工工号和年份和月份查询考勤状态记录
    XzAttendanceStateRecord selectByEmpNoAndYearAndMonth(int empNo,String years,String months);
    //根据考勤状态表的ID与选定的日期修改选定日期的出勤状态
    int updateByAttendanceStateRecordIdAndDays(long attendanceStateRecordId,String days,String state);
    //根据对象获取数组
    List getArray(XzAttendanceStateRecord xzAttendanceStateRecord);
    //根据年份查所有该年所有月份的数据
    List<XzAttendanceStateRecord> selAllByYears(String years,int empNo);
    //用poi往数据库中添加数据
    int insertAttendanceStateRecord(int empNo,String days,String state);

}
